from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Firefox()
driver.maximize_window()
url = 'https://www.jd.com/'
driver.get(url)
sleep(3)
# 将滚动条设置到指定的位置，需要通过执行JS代码才可以实现
js_script = 'window.scrollTo(0, 5000)'
# 通过python执行JS代码
driver.execute_script(js_script)

sleep(6)
driver.quit()